package cn.dkk.behavior_design.interpret;

import java.util.HashMap;
import java.util.Map;

/**
 * @author dkk
 * @date 2022/8/1
 * @desc
 */
public class Context {

    private Map<Variable, Integer> map = new HashMap<>();

    public void assign(Variable variable,Integer integer){
        map.put(variable, integer);
    }

    public int getValue(Variable variable){
        return map.get(variable);
    }

}
